import React, { Component } from 'react'
import creatHistory from 'history/createBrowserHistory' 
import "./index.scss"
const history = creatHistory();
export default class TitBar extends Component {

    componentDidMount() {
    }
    render() {
        return (
            <div className="titbar" >
                <i onClick={() => { history.goBack(-1); }} className="iconfont icon-arrow-left-bold" style={{ fontSize: 20 }}></i><span>{this.props.title}</span>
            </div>
        )
    }
}
